Package-level declarations

Types

Link copied to clipboard
data class AVStatistics(var userID: String = "", var videoBitrate: Int = 0, var videoWidth: Int = 0, var videoHeight: Int = 0, var frameRate: Int = 0, var audioSampleRate: Int = 0, var audioBitrate: Int = 0)

Audio and video statistics information

Link copied to clipboard
data class BattleConfig(var duration: Int = 0, var needResponse: Boolean = false, var extensionInfo: String = "")

PK configuration information set when sending a PK request

Link copied to clipboard

Reason for PK ending received by users in an ongoing PK

Link copied to clipboard
data class BattleInfo(val battleID: String = "", val config: BattleConfig = BattleConfig(), val startTime: Long = 0, val endTime: Long = 0)

PK information

Link copied to clipboard
abstract class BattleListener

PK-related callback events received

Link copied to clipboard

PK request callback

Link copied to clipboard
data class BattleState(var currentBattleInfo: StateFlow<BattleInfo?>, var battleUsers: StateFlow<List<SeatUserInfo>>, var battleScore: StateFlow<Map<String, Int>>)

PK-related state data provided by BattleStore

Link copied to clipboard
abstract class BattleStore

直播 PK 管理相关接口,管理 PK 的创建、加入、离开等操作。

Link copied to clipboard
data class CoGuestState(val connected: StateFlow<List<SeatUserInfo>>, val invitees: StateFlow<List<LiveUserInfo>>, val applicants: StateFlow<List<LiveUserInfo>>, val candidates: StateFlow<List<LiveUserInfo>>)

Co-guest related state data provided externally by CoGuestStore

Link copied to clipboard
abstract class CoGuestStore

Live co-guest management related interfaces, managing co-guest application, invitation, acceptance, rejection and other operations between hosts and audience.

Link copied to clipboard

Connection layout template

Link copied to clipboard
abstract class CoHostListener

Connection request callback events

Link copied to clipboard
data class CoHostState(val coHostStatus: StateFlow<CoHostStatus>, val connected: StateFlow<List<SeatUserInfo>>, val invitees: StateFlow<List<SeatUserInfo>>, val applicant: StateFlow<SeatUserInfo?>, val candidatesCursor: StateFlow<String>, val candidates: StateFlow<List<SeatUserInfo>>)

Cross-room connection related state data provided externally by CoHostStore

Link copied to clipboard

Current user's cross-room connection status

Link copied to clipboard
abstract class CoHostStore

Live host connection management related interfaces, managing creation, joining, leaving and other operations for host-to-host connections.

Link copied to clipboard

Device control policy

Link copied to clipboard
abstract class GuestListener

Callback events received on guest side

Link copied to clipboard
abstract class HostListener

Callback events received on host side

Link copied to clipboard
abstract class LikeListener

Like event, used to receive like dynamics in live rooms/voice chat rooms.

Link copied to clipboard
data class LikeState(val totalLikeCount: StateFlow<Long>)

Like state, used to display and subscribe to like information in live rooms/voice chat rooms.

Link copied to clipboard
abstract class LikeStore

Like related interfaces, managing like sending, like state synchronization, and like event listening operations in live rooms/voice chat rooms.

Link copied to clipboard
abstract class LiveAudienceListener

Live audience events

Link copied to clipboard
data class LiveAudienceState(val audienceList: StateFlow<List<LiveUserInfo>>, val audienceCount: StateFlow<Int>, val messageBannedUserList: StateFlow<List<LiveUserInfo>>)

Live audience state

Link copied to clipboard
abstract class LiveAudienceStore

Live audience related interfaces, managing audience list, permission settings and other operations.

Link copied to clipboard
data class LiveCanvas(var w: Int = 0, var h: Int = 0, var templateID: Int = 600)

Live canvas

Link copied to clipboard

Live ended reason.

Link copied to clipboard
data class LiveInfo(var liveID: String = "", var liveName: String = "", var notice: String = "", var isMessageDisable: Boolean = false, var isPublicVisible: Boolean = true, var isSeatEnabled: Boolean = true, var keepOwnerOnSeat: Boolean = false, var maxSeatCount: Int = 0, var seatMode: TakeSeatMode = TakeSeatMode.APPLY, var seatLayoutTemplateID: Int = 600, var coverURL: String = "", var backgroundURL: String = "", var categoryList: List<Int> = emptyList(), var activityStatus: Int = 0, val liveOwner: LiveUserInfo = LiveUserInfo(), val createTime: Long = 0, var totalViewerCount: Int = 0, var isGiftEnabled: Boolean = true, var metaData: Map<String, String> = emptyMap())

Live information

Link copied to clipboard

Live info completion callback interface.

Link copied to clipboard

Kicked out of live room reason.

Link copied to clipboard
abstract class LiveListListener

Live list events

Link copied to clipboard
data class LiveListState(val liveList: StateFlow<List<LiveInfo>>, val liveListCursor: StateFlow<String>, val currentLive: StateFlow<LiveInfo>)

Live list state

Link copied to clipboard
abstract class LiveListStore

Live list related interfaces, managing live room creation, joining, leaving and other operations.

Link copied to clipboard
abstract class LiveSeatListener

Seat related callback events.

Link copied to clipboard
data class LiveSeatState(val seatList: StateFlow<List<SeatInfo>>, val canvas: StateFlow<LiveCanvas>, val speakingUsers: StateFlow<MutableMap<String, Int>>, val avStatistics: StateFlow<List<AVStatistics>>)

Seat state data provided by LiveSeatStore.

Link copied to clipboard
abstract class LiveSeatStore

Live seat management related interfaces, managing seat operations such as taking seat, leaving seat, locking seat, and releasing seat.

Link copied to clipboard
data class LiveSummaryData(var totalDuration: Long = 0, var totalViewers: Int = 0, var totalGiftsSent: Int = 0, var totalGiftUniqueSenders: Int = 0, var totalGiftCoins: Int = 0, var totalLikesReceived: Int = 0, var totalMessageSent: Int = 0)
Link copied to clipboard
data class LiveSummaryState(val summaryData: StateFlow<LiveSummaryData>)
Link copied to clipboard
abstract class LiveSummaryStore
Link copied to clipboard
data class LiveUserInfo(var userID: String = "", var userName: String = "", var avatarURL: String = "")

Live user information

Link copied to clipboard

Metadata completion callback interface.

Link copied to clipboard

Move seat policy

Link copied to clipboard

Reason for no response to co-guest invitation sent by host or co-guest request initiated by audience

Link copied to clipboard
data class RegionInfo(var x: Int = 0, var y: Int = 0, var w: Int = 0, var h: Int = 0, var zorder: Int = 0)

Seat view coordinate information

Link copied to clipboard
enum Role : Enum<Role>

User role.

Link copied to clipboard
data class SeatInfo(var index: Int = 0, var isLocked: Boolean = false, var userInfo: SeatUserInfo = SeatUserInfo(), var region: RegionInfo = RegionInfo())

Seat information

Link copied to clipboard
data class SeatUserInfo(val userID: String = "", val userName: String = "", val avatarURL: String = "", val role: Role = Role.GENERAL_USER, val liveID: String = "", val microphoneStatus: DeviceStatus = DeviceStatus.OFF, val allowOpenMicrophone: Boolean = true, val cameraStatus: DeviceStatus = DeviceStatus.OFF, val allowOpenCamera: Boolean = true, val userSuspendStatus: SuspendStatus = SuspendStatus.NONE)

Seat user information

Link copied to clipboard

Stop live completion callback interface.

Link copied to clipboard

User suspend status

Link copied to clipboard

Take seat mode.